package o;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import com.huawei.secure.android.common.intent.SafeBroadcastReceiver;

public class bss extends Type2ListSegment {
    private BroadcastReceiver ॱˎ = new SafeBroadcastReceiver(this) {
        final /* synthetic */ bss ˋ;

        {
            this.ˋ = r1;
        }

        public void onReceiveMsg(Context context, Intent intent) {
            if (context == null || intent == null || this.ˋ.mListView == null) {
                bqx.ॱ("JGWTabSegment", "onReceive, context = " + context + ", intent = " + intent + ", listView = " + this.ˋ.mListView);
                return;
            }
            if (bsn.ˊ.equals(intent.getAction())) {
                Bundle extras = intent.getExtras();
                if ((this.ˋ.ᐝ instanceof brv) && extras != null) {
                    if (!((brv) this.ˋ.ᐝ).ॱ(extras.getString("cardId"))) {
                        return;
                    }
                    if (this.ˋ.ᐝ.ˊॱ() == 0) {
                        this.ˋ.ˏ(true);
                        bqx.ˊ("JGWTabSegment", "show noDataView, provider is empty");
                        return;
                    }
                    this.ˋ.ᐝ.ͺ();
                }
            }
        }
    };

    public void ॱ(String str) {
        this.ˊ = str;
    }

    protected cia ˋ(Context context) {
        return new brv(context);
    }

    protected void ॱᐝ() {
        super.ॱᐝ();
        ll.ˏ(ContentManager.getInstant().getContext()).ˏ(this.ॱˎ, new IntentFilter(bsn.ˊ));
    }

    protected void ʻॱ() {
        super.ʻॱ();
        ll.ˏ(ContentManager.getInstant().getContext()).ˋ(this.ॱˎ);
    }
}
